import Vue from 'vue'

const eventHub = new Vue()

export default {
  on: eventHub.$on.bind(eventHub),
  off: eventHub.$off.bind(eventHub),
  once: eventHub.$once.bind(eventHub),
  emit: eventHub.$emit.bind(eventHub)
}
